<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    <!-- <div class="panel-lead"><em>多表格（Multitable）</em>用于展示在一个页面展示多个表格数据,并且每次切换时刷新</div> -->
    <ul class="nav nav-tabs">
      <li class="active"><a href="#info" data-toggle="tab">客户详情</a></li>
      <li><a href="#visit" data-toggle="tab">回访列表</a></li>
      <li><a href="#receive" data-toggle="tab">回访列表</a></li>
    </ul>
  </div>
  <div class="panel-body">
    <div id="myTabContent" class="tab-content">
      <!-- 客户详情 -->
      <div class="tab-pane fade active in" id="info">
        <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

          <div class="form-group">
            <label for="t-nickname" class="control-label col-xs-12 col-sm-2">{:__('Pnickname')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['nickname']}
              <span id="nickname">777</span>
            </div>
          </div>
          <div class="form-group">
            <label for="t-mobile" class="control-label col-xs-12 col-sm-2">{:__('Pmobile')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['mobile']}
            </div>
          </div>
          <div class="form-group">
            <label for="t-email" class="control-label col-xs-12 col-sm-2">{:__('Pemail')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['email']}
            </div>
          </div>
          <div class="form-group">
            <label for="t-gender" class="control-label col-xs-12 col-sm-2">{:__('Pgender')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['gender_text']}
            </div>
          </div>
          <div class="form-group">
            <label for="t-source" class="control-label col-xs-12 col-sm-2">{:__('Psource')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['source']['name']}
            </div>
          </div>
          <div class="form-group">
            <label for="t-deal" class="control-label col-xs-12 col-sm-2">{:__('Pdeal')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['deal_text']}
            </div>
          </div>
          <div class="form-group">
            <label for="t-city" class="control-label col-xs-12 col-sm-2">{:__('Pcity')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['region_text']}
            </div>
          </div>
          <div class="form-group">
            <label for="t-auth" class="control-label col-xs-12 col-sm-2">{:__('Pauth')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['auth_text']}
            </div>
          </div>
          <div class="form-group">
            <label for="t-createtime" class="control-label col-xs-12 col-sm-2">{:__('Pcreatetime')}:</label>
            <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
              {$row['createtime']}
            </div>
          </div>
          <div class="form-group">
            <label for="t-avatar" class="control-label col-xs-12 col-sm-2">{:__('Pavatar')}:</label>
            <img width="80" style="padding: 7px 0 0 15px;" src="{$row['avatar_text']}" />
          </div>
        </form>

      </div>

      <!-- 回访列表 -->
      <div class="tab-pane fade" id="visit">
        <div id="toolbar1" class="toolbar">
          {:build_toolbar('refresh,add,edit,delete')}
        </div>
        <table id="table1" class="table table-striped table-bordered table-hover" width="100%">
        </table>
      </div>
      <!-- 回访列表 -->
      <div class="tab-pane fade" id="receive">
        <div id="toolbar2" class="toolbar">
          {:build_toolbar('refresh,add,edit,delete')}
        </div>
        <table id="table2" class="table table-striped table-bordered table-hover" width="100%">
        </table>
      </div>
    </div>
  </div>
</div>